package com.concurrent.threadPoolTest;

import java.util.Collection;
import java.util.Iterator;
import java.util.concurrent.*;

/**
 * @author: zhouyang
 * @descrpition:
 * @time: 2019-05-12 23:32
 */
public class ThreadPool {
    static class MyRunnable implements Runnable{
        @Override
        public void run() {

        }
    }
    public static void main(String[] args) {
        BlockingQueue<Runnable> blockingQueue = new ArrayBlockingQueue<>(5);
        ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 1, 1, TimeUnit.MINUTES,blockingQueue);
        ExecutorService executorService = Executors.newCachedThreadPool();
    }
}
